#include "dom.h"
#include "parser.h"
#include "dom_policy.h"
#include "model_class.h"

namespace model {
	typedef parser<dom_policy> dom_parser;
}

#include <iostream>
#include <fstream>

using namespace std;

int main(int argc, char *argv[])
{
	ifstream ifs("test.xml");
	string buff;
	string line;
	while(ifs.good()) {
		getline(ifs, line);
		buff += line;
	}
	cout << "File: " << endl << buff << endl << endl;
	model::dom_parser pars;
	if(!pars.parse(buff)) {
		cerr << "Error beim Parsen!!11" << endl;
	}

	boost::shared_ptr<model::dom> node(pars.get_node());
	cout << node->to_string() << endl;

	model::client clt(*node);
	clt.print();

	return 0;
}

